package com.zj.study.utils.validation.annotation.constraint;


import com.zj.study.utils.validation.annotation.Constraint;
import com.zj.study.utils.validation.validator.integeric.IntValidatorForString;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 校验必须为可为负数的整型值
 * <p>该校验器用于支持某些情况下需要以 {@link String} 类型接收整形</p>
 *
 * @author 谭耀飞
 * @since 2021.06.0
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Constraint(validateBy = {
    IntValidatorForString.class
})
public @interface Int {

}
